﻿<%@ Page Title="" Language="C#" MasterPageFile="~/IndexMaster.Master" AutoEventWireup="true" CodeBehind="IndexRegister.aspx.cs" Inherits="EHTSaleManager.IndexRegister" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Contentmain" runat="server">
    <div id="shopheader_red" align="left" style="font-size:11px;text-transform:uppercase;padding-left:10px; background-color:#ff6600">
        Registrer
    </div>
      
    <div class="">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tr>
                <td colspan="2">
                    <span class="failureNotification">
                        <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="RegisterUserValidationGroup" />
                </td>
            </tr>
           
            <tr>
                <td align="right">
                    <asp:Label ID="lbFirstName" runat="server" Text="Fornavn:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtFirstName" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rFirstName" runat="server" ControlToValidate="txtFirstName"
                        CssClass="failureNotification" ErrorMessage="First Name is required." ToolTip="First Name is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
                
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbLastName" runat="server" Text="Etternavn:"></asp:Label>
                </td>
               
                <th >
                    
                    <asp:TextBox ID="txtLastName" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rLastName" runat="server" ControlToValidate="txtLastName"
                        CssClass="failureNotification" ErrorMessage="Last Name is required." ToolTip="Last Name is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
                
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbPhone" runat="server" Text="Telefon:"></asp:Label>
                </td>
                
                <th >
                    <asp:TextBox  ID="txtPhone" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rPhone" runat="server" ControlToValidate="txtPhone"
                        CssClass="failureNotification" ErrorMessage="Phone is required." ToolTip="Phone is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
               
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbFax" runat="server" Text="Fax:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtFax" runat="server" CssClass="textEntry"></asp:TextBox>
                </th>
               
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbAddress" runat="server" Text="Adresse:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtAddress" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rAddress" runat="server" ControlToValidate="txtAddress"
                        CssClass="failureNotification" ErrorMessage="Address is required." ToolTip="Address is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
                
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbCity" runat="server" Text="By:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtCity" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rCity" runat="server" ControlToValidate="txtCity"
                        CssClass="failureNotification" ErrorMessage="City is required." ToolTip="City is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
               
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbRegion" runat="server" Text="Region:"></asp:Label>
                </td>
                <th>
                    <asp:DropDownList ID="ddlRegion" runat="server" CssClass="textEntry" OnDataBound="ddlRegion_DataBound">
                    </asp:DropDownList>
                </th>
              
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbPostCode" runat="server" Text="Postnummer:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtPostCode" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rPostCode" runat="server" ControlToValidate="txtPostCode"
                        CssClass="failureNotification" ErrorMessage="Post code is required." ToolTip="Post code is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
               
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbEmail" runat="server" Text="E-post:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rEmail" runat="server" ControlToValidate="txtEmail"
                        CssClass="failureNotification" ErrorMessage="Email is required." ToolTip="Email is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revEmail" runat="server" ValidationGroup="RegisterUserValidationGroup"
                        ControlToValidate="txtEmail" CssClass="failureNotification" ErrorMessage="Email not valid"
                        ToolTip="Email not valid" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                </th>
                
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbPassword" runat="server" Text="Passord:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtPassword" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rPassword" runat="server" ControlToValidate="txtPassword"
                        CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
               
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbComfirmPassword" runat="server" Text="Comfirm Passord:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtComfirmPassword" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rComfirmPassword" runat="server" ControlToValidate="txtComfirmPassword"
                        CssClass="failureNotification" ErrorMessage="Comfirm password is required." ToolTip="Comfirm password is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="cComfirmPassword" CssClass="failureNotification" ControlToValidate="txtComfirmPassword"
                        ControlToCompare="txtPassword" runat="server" ErrorMessage="Comfirm Password is same password."
                        ToolTip="Comfirm Password is same password." ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
                </th>
              
            </tr>
            <tr>
                <td align="right">
                    Service Level:
                </td>
                <th><asp:DropDownList ID="ddlServiceLevel" runat="server" CssClass="textEntry" >                        
                    </asp:DropDownList>
                    
                </th>
                
            </tr>
            <tr>
                <td></td>
                <th> 
                    <asp:Button ID="btnRegister" runat="server" Text="Registrer" ValidationGroup="RegisterUserValidationGroup"
                OnClick="btnRegister_Click" style="height: 26px" /></th>
            
            </tr>
        </table>
    </div>
</asp:Content>
